package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 老师带班年级
 * </p>
 *
 * @author hpiggy
 * @since 2025-02-25
 */
@Data
@TableName("teacher_leads_year_class")
@ApiModel(value = "TeacherLeadsYearClass对象", description = "老师带班年级")
public class TeacherLeadsYearClass implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long teacherId;

    private Integer yearClassId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("添加人id")
    private Long createdId;

    @TableField(exist = false)
    @ApiModelProperty("年级")
    private String yearClassName;

    @TableField(exist = false)
    @ApiModelProperty("多个年级id")
    private String yearClassIds;




}
